{include file="$sRootPath/_blocks/pager_nav_button.html"}

{messages block='comment'}
<div id="new_comment_data" style="display:none;"></div>
{foreach from=$aItems item=aItem name=aitems}
<table style="width: 100%;" cellpadding="4" cellspacing="0">
	<tr>
		<td class="comment" align="left">

			<table style="width: 100%;" class="comment-head" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
					<td class="block_header" align="left">{language text="from_503"}: <a class="a_comment_head" href="{url link='public.user' name=$aItem.user}">{$aItem.user}</a></td>
				</tr>
			</table>

			<table style="width:100%;" cellpadding="5" cellspacing="0" class="">
			 <tr>
				<td style="width:85%;vertical-align:top;font-size:8pt;" class="comment-text" align="left">

				<div style="text-decoration:underline;" class="comment-text">
					{$aItem.time|date_format:$sDateTimeFormat}
				</div>
<div style="font-size:8pt;padding-top:10px;" class="comment-text">
{if $aItem.type == 0}
    {if $aItem.invite == 1}
        {i18n key='Mod_Event.rsvp_yes'}
    {elseif $aItem.invite == 2}
        {i18n key='Mod_Event.rsvp_maybe'}
    {elseif $aItem.invite == 3}
        {i18n key='Mod_Event.rsvp_no'}
    {/if}
{/if}
        </div>
				<div style="font-size:8pt;padding-top:10px;" class="comment-text">
			{if $bDontProcess}
			{$aItem.text}
			{else}
			{$aItem.text|process_code}
			{/if}
				</div>
				</td><td style="width:15%;vertical-align:top;text-align:center;padding:5px;font-size:8pt;">

			{if !$bShowImages}
			<a href="{url link='public.user' name=$aItem.user}">
                 {Account::Avatar sUser=$aItem.user iSize=75 class="pic1" onmouseover="showInfo5('`$aItem.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
			</a>
			{/if}
					<br />
				</td>
			 </tr>
			 <tr>
				<td colspan="2">

					<div style="padding:10px;">
			{if $aItem.can_delete}<a href="{url link='current' cdelete=$aItem.id}" onclick="return sure('');">[ {language text="delete"} ]</a>{/if}
					</div>

				</td>
			 </tr>
			 </table>
		</td>
	</tr>
</table>
 <br />
{/foreach}

{include file="$sRootPath/_blocks/pager_nav_button.html"}